package com.woniuxy.dudugua.Client;

//import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.io.File;

//@FeignClient(url="http://api.yimei.ai/v2/api/face/analysis/",name="test")
@Component
public interface YiYuanClient {
    //获取肤龄
    @RequestMapping(value = "1",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getAge(@RequestBody File image, @RequestHeader("Authorization") String Authorization);
    //毛孔
    @RequestMapping(value = "4",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getPore(@RequestPart(value = "image") File image, @RequestHeader("Authorization") String Authorization);
    //肤质
    @RequestMapping(value = "8",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getSkinType(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //面部特征
    @RequestMapping(value = "32",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getFeatures(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //水分
    @RequestMapping(value = "4096",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getMoisture(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //皱纹
    @RequestMapping(value = "8192",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getWrinkle(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //黑头
    @RequestMapping(value = "32768",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getBlackHead(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //痘痘
    @RequestMapping(value = "65536",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getPockMark(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //黑眼圈
    @RequestMapping(value = "131072",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getDarkCircle(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //颜值
    @RequestMapping(value = "262144",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getAppearance(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //打败人数
    @RequestMapping(value = "137438953472",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getDefeatRank(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
    //三庭五眼
    @RequestMapping(value = "34359738368",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Object getFaceRatio(@RequestPart(value = "image") File image, @RequestParam("Authorization") String Authorization);
}
